<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let name = 'atgg'
        let change = function() {
            console.log('可以改变n你')
        }

        //简化定义对象
        const school = {
            name,  //等价于 name: name
            change, //等价于 change: change
            improve() { //等价于 improve: function() {...}
                console.log('提高')
            }
        }
        console.log(school)
    </script>
</body>
</html>